<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>控制台 - 消防大模型应用平台</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Element Plus -->
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <script src="https://unpkg.com/element-plus"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .sidebar {
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            width: 250px;
            background: #1a237e;
            color: white;
            padding: 20px;
        }
        .main-content {
            margin-left: 250px;
            padding: 20px;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 侧边栏 -->
    <div class="sidebar">
        <div class="text-2xl font-bold mb-8">
            <i class="fas fa-fire-extinguisher mr-2"></i>
            消防大模型平台
        </div>
        <nav>
            <ul class="space-y-4">
                <li>
                    <a href="dashboard.html" class="flex items-center text-white bg-blue-800 rounded-lg">
                        <i class="fas fa-home w-6"></i>
                        <span>控制台</span>
                    </a>
                </li>
                <li>
                    <a href="knowledge.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-book w-6"></i>
                        <span>知识库</span>
                    </a>
                </li>
                <li>
                    <a href="report.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-file-alt w-6"></i>
                        <span>报告生成</span>
                    </a>
                </li>
                <li>
                    <a href="analysis.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-chart-line w-6"></i>
                        <span>分析工具</span>
                    </a>
                </li>
                <li>
                    <a href="settings.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-cog w-6"></i>
                        <span>系统设置</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主要内容区 -->
    <div class="main-content">
        <!-- 欢迎信息 -->
        <div class="bg-white rounded-lg shadow-lg p-6 mb-6">
            <div class="flex items-center justify-between">
                <div>
                    <h1 class="text-2xl font-bold">欢迎回来，管理员</h1>
                    <p class="text-gray-500">今天是 2024年3月15日 星期五</p>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-bell text-xl"></i>
                    </button>
                    <button class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-user-circle text-xl"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- 数据概览 -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
            <!-- 知识库统计 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-gray-500">知识库文档</h3>
                    <i class="fas fa-book text-2xl text-blue-500"></i>
                </div>
                <div class="text-3xl font-bold mb-2">1,234</div>
                <div class="text-sm text-gray-500">
                    <span class="text-green-500">↑ 12%</span> 较上月
                </div>
            </div>

            <!-- 报告统计 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-gray-500">生成报告</h3>
                    <i class="fas fa-file-alt text-2xl text-green-500"></i>
                </div>
                <div class="text-3xl font-bold mb-2">89</div>
                <div class="text-sm text-gray-500">
                    <span class="text-green-500">↑ 8%</span> 较上月
                </div>
            </div>

            <!-- 分析任务 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-gray-500">分析任务</h3>
                    <i class="fas fa-chart-line text-2xl text-purple-500"></i>
                </div>
                <div class="text-3xl font-bold mb-2">45</div>
                <div class="text-sm text-gray-500">
                    <span class="text-red-500">↓ 3%</span> 较上月
                </div>
            </div>

            <!-- 用户数量 -->
            <div class="bg-white rounded-lg shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-gray-500">活跃用户</h3>
                    <i class="fas fa-users text-2xl text-orange-500"></i>
                </div>
                <div class="text-3xl font-bold mb-2">256</div>
                <div class="text-sm text-gray-500">
                    <span class="text-green-500">↑ 15%</span> 较上月
                </div>
            </div>
        </div>

        <!-- 最近活动 -->
        <div class="bg-white rounded-lg shadow-lg p-6">
            <h2 class="text-xl font-bold mb-4">最近活动</h2>
            <div class="space-y-4">
                <!-- 活动项目 1 -->
                <div class="flex items-center space-x-4">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-file-alt text-blue-500"></i>
                    </div>
                    <div class="flex-1">
                        <p class="font-medium">新建了火灾事故调查报告</p>
                        <p class="text-sm text-gray-500">2小时前</p>
                    </div>
                </div>

                <!-- 活动项目 2 -->
                <div class="flex items-center space-x-4">
                    <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-book text-green-500"></i>
                    </div>
                    <div class="flex-1">
                        <p class="font-medium">上传了新的消防规范文档</p>
                        <p class="text-sm text-gray-500">4小时前</p>
                    </div>
                </div>

                <!-- 活动项目 3 -->
                <div class="flex items-center space-x-4">
                    <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-chart-line text-purple-500"></i>
                    </div>
                    <div class="flex-1">
                        <p class="font-medium">完成了火灾原因分析</p>
                        <p class="text-sm text-gray-500">6小时前</p>
                    </div>
                </div>

                <!-- 活动项目 4 -->
                <div class="flex items-center space-x-4">
                    <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-user-plus text-orange-500"></i>
                    </div>
                    <div class="flex-1">
                        <p class="font-medium">新用户注册</p>
                        <p class="text-sm text-gray-500">8小时前</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 